import { VantComponent } from '../../vant-weapp/dist/common/component'
VantComponent({
  props: {
    customClass: String,
    bottom: {
      type: Number,
      value: 20
    },
    defaultHeight: {
      type: [String, Number],
      value: 0
    },
    border: {
      type: Boolean,
      value: true
    }
  },
  data: {
    keyboardHeight: 0
  },
  mounted () {
    // 监听键盘高度变化
    wx.onKeyboardHeightChange(res => {
      this.setData({
        keyboardHeight: res.height
      })
      console.log(res)
    })
  }
})
